import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '../view/login.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'login',
      component: HelloWorld
    },
    {
      path:'/mune',
      name:'mune',
      component:()=>import("../view/mune.vue"),
      children:[
        {
          path:'/mune/kc',
          name:'kc',
          component:()=>import("../view/kc.vue"),
        },
        {
          path:'/mune/bj',
          name:'bj',
          component:()=>import("../view/bj.vue"),
        },
        {
          path:'/mune/student',
          name:'student',
          component:()=>import("../view/student.vue"),
        },
        {
          path:'/mune/stuCx',
          name:'stuCx',
          component:()=>import("../view/stuCx.vue"),
        },
        {
          path:'/mune/stuJo',
          name:'stuJo',
          component:()=>import("../view/stuJo.vue"),
        },
        {
          path:'/mune/grPsn',
          name:'grPsn',
          component:()=>import("../view/grPsn.vue"),
        },
        {
          path:'/mune/treeTable',
          name:'dept',
          component:()=>import("../view/treeTable.vue"),
        },

      ]
    },

  ]
})
